

<#import "textfield.ftl" as textftl>
<#import "combobox_array.ftl" as comboftl> 
<#import "combobox_dic.ftl" as combobox_dic> 
<#macro hiddefield field>{xtype : 'hidden',name : '${field.name!}',value:'${field.value!}'}</#macro>
<#assign typeMacro = {"textfield":textftl.textfield,
						"combobox_array":comboftl.combobox,
						"combobox_dic":combobox_dic.combobox,
						"hidden":hiddefield} />
{
	xtype : 'form',
	frame : true,
	labelWidth : ${form.labelWidth},
	labelAlign : '${form.labelAlign}',
	layout : 'tableForm',
	layoutConfig:{columns:${form.colnum}},
	title:'${form.title}',
	items : [
	
		<#list form.field as item>
			<@typeMacro[item.type] field=item/><#if item_has_next>,</#if>
		</#list>
	]

}

